﻿using Rhino.Etl.Core;
using Rhino.Etl.Core.Operations;

namespace EtlDemo.Rhino.JobCounts.Joins
{
    public class JoinLegacyCountsWithAffiliates : JoinOperation
    {
        protected override Row MergeRows(Row leftRow, Row rightRow)
        {
            Row row = leftRow.Clone();
            row["Affiliate"] = rightRow["Affiliate"];
            return row;
        }

        protected override void SetupJoinConditions()
        {
            InnerJoin.Left("Zip").Right("Zip");
        }
    }
}